/*
 * Time-based One-time Password
 */

#ifndef USER_PASSWORD_DYNAMIC_TOTP_H
#define USER_PASSWORD_DYNAMIC_TOTP_H

#include "gkt_rtc.h"
#include "gkt_totp.h"

#ifdef GKT_CONFIG_USER_PASSWORD_DYNAMIC_TOTP_ENABLE
#define USER_DYNPWD_TOTP_ENABLE	\
	GKT_CONFIG_USER_PASSWORD_DYNAMIC_TOTP_ENABLE
#else
#define USER_DYNPWD_TOTP_ENABLE	0
#endif

#define USER_DYNPWD_TOTP_SIZE	8
#define USER_DYNPWD_TOTP_TIME_STEP_S	180

int user_dynpwd_totp_verify(uint32_t *user_id, 
				const uint8_t *data);

#endif

